package com.example.ssm.xss;


import org.apache.commons.text.StringEscapeUtils;
import org.owasp.esapi.ESAPI;

import javax.rmi.CORBA.Util;

/**
 * @author Administrator
 * @date 2020/6/9 18:23
 */
public class Main {

    public static void main(String[] args) {
       /* System.out.println(StringEscapeUtils.escapeEcmaScript("<script>alert(document.cookie)</script>"));
        System.out.println(StringEscapeUtils.escapeHtml4("<div>666</div>"));
        System.out.println(StringEscapeUtils.escapeJava("throw new Exception('')"));
        System.out.println(ESAPI.encoder().decodeForHTML("<script>alert(document.cookie)</script>"));*/


       
    }
}
